//
//  Header.h
//  Depressed.domo
//
//  Created by rimi on 16/5/26.
//  Copyright © 2016年 薛涛. All rights reserved.
//

#ifndef Header_h
#define Header_h

#import <UIKit/UIKit.h>

#define SCREEN_WIDTH                [UIScreen mainScreen].bounds.size.width
#define SCREEN_HEIGHT               [UIScreen mainScreen].bounds.size.height
#define CRM(x, y, width, height)    CGRectMake(x, y, width, height)
#define CPM(x, y)                   CGPointMake(x, y)
#define MID_X                       CGRectGetMidX([UIScreen mainScreen].bounds)
#define MID_Y                       CGRectGetMidY([UIScreen mainScreen].bounds)
#define CSM(width, height)          CGSizeMake(width, height)
/**直接返回栈底的视图控制器*/
//[self.navigationController popViewControllerAnimated:YES];
//[self.navigationController pushViewController:nextViewController animated:YES];

//[self presentViewController:  animated:YES completion:nil];
//[self.presentingViewController dismissViewControllerAnimated:YES completion:nil];

#define RGB_COLOR(_R,_G,_B,_A) [UIColor colorWithRed:_R/255.0 green:_G/255.0 blue:_B/255.0 alpha:_A]

#define kSCREEN_H [UIScreen mainScreen].bounds.size.height
#define kSCREEN_W [UIScreen mainScreen].bounds.size.width
#define kSCREEN [UIScreen mainScreen].bounds

#define CENTER_X [UIScreen mainScreen].bounds.size.width * 0.5
#define CENTER_Y [UIScreen mainScreen].bounds.size.height * 0.5

// 获取单例实例
#define GET_DEFAULT_INFORMATIONCENTER [InformationCenter defaultInfoCenter]
#endif /* Header_h */
